package com.tdy.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by tangdaoyuan on 15/11/26.
 */
public class StaticsFilter implements Filter {
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println(this.getClass().getName()+" init");
    }

    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("this request point to static resources");
        filterChain.doFilter(servletRequest, servletResponse);
    }

    public void destroy() {

    }
}
